<%@ page language="java" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <%@include file="/res/include/base-head.jsp"%>
	<%@include file="/res/include/jquery-easyui.jsp"%>
	<%@include file="/res/include/umeditor.jsp"%>
	<script type="text/javascript" src="${pageContext.request.contextPath}/res/js/mall/subjectProduct.js"></script>
  </head>
  <body>  
<div class="form_item topic_add">
   <form id="data-form">
   	<c:if test="${!empty mallSubjectProductVo}">
    	<input type="hidden" name="id" value="${mallSubjectProductVo.id }"/>
    </c:if>
    <dl>
   		<dt>排序：</dt>
       	<dd><input type="text" class="txt grid-15 easyui-numberbox" precision="0" name="oidx" data-options="required:true" value="${mallSubjectProductVo.oidx }"/></dd>
    </dl>
    </form>
    <p class="page_btn"><input type="button" id="doSave" value="保存" class="btn_blue" onclick="doSave();"/></p>
</div>
<script type="text/javascript">

//提交保存
function doSave(){
	var url = contextPath+'/mall/subject/product/update';
	if(!$('#data-form').form('validate')) return;
	var data = $('#data-form').form('jsonObject');
	$.post(url,data,function(result) {
		if(result.code==1) {
			top.showInfo('保存成功');
		} else {
			isSave = false;
			top.showInfo('保存失败:'+result.msg);
		}
	},'json');
}
</script>
  </body>
</html>
